package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IEmployeeService {
    void saveOrUpdate(Employee entity, Long[] ids);
    void delete(Long id);
    Employee get(Long id);

    PageInfo<?> query(QueryObject qo);

    void batchDelete(Long[] ids);

    boolean checkName(String name);

    List<Employee> selectAll();
}
